
/**
 * @author Shima
 *
 */

package gps_Convertor; 
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class Node {
	
	
	private HashMap<Integer, List<Integer>> connectionMap = new HashMap<Integer, List<Integer>> ();

	
	public void setConnectionMap(int pid,int oid, boolean flag) 
	{
		
		List <Integer> pconnection; 
		if(flag) 
		{
			pconnection = connectionMap.get(pid);
			
		}else{
			pconnection = new ArrayList<Integer>();
		}
		
		pconnection.add(oid);
		connectionMap.put(pid, pconnection);

	}

	public HashMap<Integer,List<Integer>> getConnectionMap() {
		return connectionMap;
	}
}
